﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EzyThirdLogic.ExtensionMethods
{
    public static class FDSetExtensions
    {
        public static FunctionalDependencySet Clone(this FunctionalDependencySet fdSet)
        {
            FunctionalDependencySet result = new FunctionalDependencySet();
            foreach (var fd in fdSet.FDSet)
            {
                result.AddFunctionalDependency(fd);
            }
            return result;
        }
    }
}
